#include <QApplication>
#include <QDebug>
#include "login.h"
#include "mainwindow.h"

int main(int argc, char ** argv)
{
	QApplication app( argc, argv );
	app.setOrganizationName("XTeh");
	app.setApplicationName("admin");

    Login log;

	if(!log.exec()) return 0;
    log.close();
	
    MainWindow mw(log.dbase);
    mw.show();
	return app.exec();
}
